/**
 * @Description: 路由配置
 * @Author bianpengfei
 * @create 2022/11/24 19:17
 */
// import profile from '@root/profile'

// 全屏路由
const fullRoutes = [
  {
    path: '/FullLayout/Screen',
    meta: { cache: false, title: '测试页面', auth: false },
    component: () => import('@/view/FullLayout/Screen')
  }
]

/**
 * 异步路由
 */
const asyncRoutes = [
  {
    path: '/FullLayout',
    component: () => import('@/layout/full'),
    meta: {},
    children: [
      // 全屏组件
      ...fullRoutes
    ]
  }
]

/**
 * 公共路由
 */
export const publicRoutes = [
  {
    path: '/',
    redirect: '/FullLayout/Screen',
    meta: {}
  }
]

// console.log('asyncRoutes', asyncRoutes)

export default [...asyncRoutes, ...publicRoutes]
